<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<style type="text/css">
		.tz {
			width: 200px;
			height: 200px;
			background: blue;
			color: white;
			line-height: 200px;
			text-align: center;
			cursor:move;
		}
	</style>
	<script src="jquery-1.11.0.js"></script>
	<script src="drag.js"></script>
	<script type="text/javascript">
		$(function() {
			$('.tz').draggabilly();
		})
	</script>

	<body>
		<div class="tz">
			这是一个拖拽文本
		</div>
    </body>

</html>